package com.matrix.order.infrastructure.persistence.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.matrix.order.infrastructure.persistence.po.OrderPaymentPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author 有点甜
 * @since 2025/7/29
 */
@Mapper
public interface OrderPaymentMapper extends BaseMapper<OrderPaymentPO> {
    @Select("SELECT order_id FROM t_order_payment WHERE payment_no = #{paymentNo} LIMIT 1")
    Long findOrderIdByPaymentNo(String paymentNo);
}
